<?php
namespace Core\Service;
use \Phalcon\Mvc\User\Component;
use \Phalcon\Mvc\View as PhalconView;
//use \Core\View as PhalconView;
class View extends Component {
    public function register() {
        $this->di->setShared(
            'view',
            function () {
                $view = new PhalconView();
                $view->registerEngines([
                    '.phtml' => '\\Phalcon\\Mvc\\View\\Engine\\Php'
                ])->disable();
                return $view;
            }
        );
        return $this;
    }
}